KOMPILACE PROJEKTU NA JINEM PC

Otázka od: mr.guest_delphi@centrum.cz

5. 6. 2004 20:41

Dobry den lidstvo,
takova otazecka. Lze jakkoliv zkompilovat projekt na jinam PC? Zkousel jsem
dc32.exe ale furt hlasi missing "system.pas" a nebo v lepsim nejaky error o
chybe zacykleni ci co.
Zdar programingu .. a DIK

Odpovedá: Jiri Cincura

5. 6. 2004 21:02

Mozna to bude chtit mit asi i ty soubory, ktere jsou v uses (plus ty co na
ne odkazuji).


--
Jiri Cincura
e-mail: mailto:jiri@cincura.net; mailto:xcincura@informatics.muni.cz
ICQ: 314711544
web: http://www.cincura.net; http://cincura.net/photo



Odpovedá: Jakub Dusek

5. 6. 2004 21:23

dcc32.exe je tusim nutne rict cestu k Lib adresari VCL:
dcc32.exe project.dpr "-uc:\Application\Development\Delphi 6\Lib"

Proc to radsi na tom jinem pocitaci neotevres v Delphi?

Jakub Dusek
----------------------------------------------------------------------
web: http://www.corexpert.com, mobile: +420 604 615 795, ICQ: 86063232
odesilani smsek, vizitek, log a melodii, snadna integrace do Vaseho IS
     => Sms GateKeeper, Sms GateKeeper Service

======================================================================
Saturday, June 5, 2004, 9:27:07 PM, you wrote:

mgcc> Dobry den lidstvo,
mgcc> takova otazecka. Lze jakkoliv zkompilovat projekt na
mgcc> jinam PC? Zkousel jsem dc32.exe ale furt hlasi missing
mgcc> "system.pas" a nebo v lepsim nejaky error o chybe zacykleni ci
mgcc> co.
mgcc> Zdar programingu .. a DIK



Odpovedá: mr.guest_delphi@centrum.cz

5. 6. 2004 21:13



> Mozna to bude chtit mit asi i ty soubory, ktere jsou v uses (plus ty co na
> ne odkazuji).


No nejhorsi je na tom asi to ze je tam mam.   Zkousel jsem to dat do
adresare kde mam dcc32.exe a nic . mozna to bude v konfigu dc32.exe ale to
nevim co a jak. Nema nekdo zkusenosti? Predem diky


Odpovedá: Jakub Dusek

5. 6. 2004 21:41

Spis do adresare kde je projekt.

Jakub Dusek
----------------------------------------------------------------------
web: http://www.corexpert.com, mobile: +420 604 615 795, ICQ: 86063232
odesilani smsek, vizitek, log a melodii, snadna integrace do Vaseho IS
     => Sms GateKeeper, Sms GateKeeper Service

======================================================================
Saturday, June 5, 2004, 10:13:13 PM, you wrote:



>> Mozna to bude chtit mit asi i ty soubory, ktere jsou v uses (plus ty co na
>> ne odkazuji).


mgcc> No nejhorsi je na tom asi to ze je tam mam.   Zkousel jsem to dat do
mgcc> adresare kde mam dcc32.exe a nic . mozna to bude v konfigu dc32.exe ale
to
mgcc> nevim co a jak. Nema nekdo zkusenosti? Predem diky




Odpovedá: Pavel Malinsky

6. 6. 2004 6:42

> -----Original Message-----
> From: delphi-l-owner@clexpert.cz
> [mailto:delphi-l-owner@clexpert.cz] On Behalf Of
> mr.guest_delphi@centrum.cz
>
> Dobry den lidstvo,
> takova otazecka. Lze jakkoliv zkompilovat projekt na jinam
> PC? Zkousel jsem dc32.exe ale furt hlasi missing "system.pas"

Ahoj,

Tady mas priklad davkoveho souboru pro hromadny build,
treba ti to pomuze. Pozor na zalomeni v mailu.

          S pozdravem a dikem
=====================================
> Pavel Malinsky; malinsky@pmcom.cz <
=====================================
> GSM: 602 652 203 | ICQ: 322015967 <
=====================================
 
Zacatek prikladu:
----------------------------------------------------------------------------
--------------
@Echo off
Echo ******* Building Program1

rem # vyprazdnim si temp adresar
del /Q C:\temp\*.*

if "%%"=="" goto NoDelphiPath
goto HaveDelphiPath

:NoDelphiPath
echo Please define the environment variable.
pause
goto End

:HaveDelphiPath

if exist Program1.cfg ren Program1.cfg Program1.cf~
if exist DCC32.cfg ren DCC32.cfg DCC32.cf~
rem # Make console target, unless overridden later

rem # Toto dela jenom compile
rem echo -M -CC >> DCC32.cfg

rem # Toto dela Build
echo -B -CC >> DCC32.cfg

echo -$A+ >> DCC32.cfg
echo -$B- >> DCC32.cfg
echo -$C+ >> DCC32.cfg
echo -$D+ >> DCC32.cfg
echo -$G+ >> DCC32.cfg
echo -$H+ >> DCC32.cfg
echo -$I+ >> DCC32.cfg
echo -$J+ >> DCC32.cfg
echo -$L+ >> DCC32.cfg
echo -$M- >> DCC32.cfg
echo -$O+ >> DCC32.cfg
echo -$P+ >> DCC32.cfg
echo -$Q- >> DCC32.cfg
echo -$R- >> DCC32.cfg
echo -$T- >> DCC32.cfg
echo -$U- >> DCC32.cfg
echo -$V+ >> DCC32.cfg
echo -$W- >> DCC32.cfg
echo -$X+ >> DCC32.cfg
echo -$Y+ >> DCC32.cfg
rem # ShowHints
echo -H >> DCC32.cfg
rem # ShowWarnings
echo -W >> DCC32.cfg
rem # UnitAliases
echo
-AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;
>> DCC32.cfg
rem # ConsoleApp
echo -CG >> DCC32.cfg
rem # ImageBase
echo -K$00400000 >> DCC32.cfg
rem # OutputDir
echo -E"E:\DebugApp" >> DCC32.cfg
rem # OutputDir
echo -LN"E:\DebugApp" >> DCC32.cfg
rem # OutputDir
echo -LE"E:\DebugApp" >> DCC32.cfg
rem # UnitOutputDir
echo -N"C:\temp" >> DCC32.cfg
rem # Packages
echo -LU >> DCC32.cfg
rem # Conditionals
echo -LADICI_REZIM;MYWINDESTROY >> DCC32.cfg
rem echo -LADICI_REZIM;GX_DEBUG;MYWINDESTROY >> DCC32.cfg
rem echo -LADICI_REZIM >> DCC32.cfg
rem # SearchPath
echo
-U"C:\temp;c:\Develop\Delphi5\source\vcl-patch;c:\Develop\Delphi5\Lib;c:\Dev
elop\Delphi5\Bin;c:\Develop\Delphi5\Imports;c:\Develop\Delphi5\DCompLib\rx\u
nits;C:\Develop\Delphi5\DCompLib\ibo4;c:\Delphi5\Projects\Bpl;C:\Develop\Del
phi5\DCompLib;C:\Develop\Delphi5\DCompLib\ralib\lib;C:\Develop\Delphi5\DComp
Lib\lock;C:\Develop\Delphi5\DCompLib\cipher\source;C:\Develop\Delphi5\DCompL
ib\jcl\source;C:\Develop\Delphi5\DCompLib\sinea;C:\Develop\Delphi5\DCompLib\
outlook;C:\Develop\Delphi5\DCompLib\ics\Delphi\Vc32;C:\Develop\Delphi5\DComp
Lib\VirtualTreeView;C:\Develop\Delphi5\DCompLib\GExperts\Comps;C:\Develop\De
lphi5\DCompLib\synaser\source;C:\Develop\Delphi5\DCompLib\AsyncFree;C:\Devel
op\Delphi5\DCompLib\xml\source;C:\Develop\Delphi5\DCompLib\Dec\source;C:\Dev
elop\Delphi5\DCompLib\Ics;C:\Develop\Delphi5\DCompLib\ics\Delphi\Vc32;C:\Dev
elop\Delphi5\DCompLib\Theme Manager;C:\Develop\GExperts5"
>> DCC32.cfg
rem # SearchPath
echo
-R"C:\temp;c:\Develop\Delphi5\source\vcl-patch;c:\Develop\Delphi5\Lib;c:\Dev
elop\Delphi5\Bin;c:\Develop\Delphi5\Imports;c:\Develop\Delphi5\DCompLib\rx\u
nits;C:\Develop\Delphi5\DCompLib\ibo4;c:\Delphi5\Projects\Bpl;C:\Develop\Del
phi5\DCompLib;C:\Develop\Delphi5\DCompLib\ralib\lib;C:\Develop\Delphi5\DComp
Lib\lock;C:\Develop\Delphi5\DCompLib\cipher\source;C:\Develop\Delphi5\DCompL
ib\jcl\source;C:\Develop\Delphi5\DCompLib\sinea;C:\Develop\Delphi5\DCompLib\
outlook;C:\Develop\Delphi5\DCompLib\ics\Delphi\Vc32;C:\Develop\Delphi5\DComp
Lib\VirtualTreeView;C:\Develop\Delphi5\DCompLib\GExperts\Comps;C:\Develop\De
lphi5\DCompLib\synaser\source;C:\Develop\Delphi5\DCompLib\AsyncFree;C:\Devel
op\Delphi5\DCompLib\xml\source;C:\Develop\Delphi5\DCompLib\Dec\source;C:\Dev
elop\Delphi5\DCompLib\Ics;C:\Develop\Delphi5\DCompLib\Theme Manager"
>>
DCC32.cfg
rem # SearchPath
echo
-O"C:\temp;c:\Develop\Delphi5\source\vcl-patch;c:\Develop\Delphi5\Lib;c:\Dev
elop\Delphi5\Bin;c:\Develop\Delphi5\Imports;c:\Develop\Delphi5\DCompLib\rx\u
nits;C:\Develop\Delphi5\DCompLib\ibo4;c:\Delphi5\Projects\Bpl;C:\Develop\Del
phi5\DCompLib;C:\Develop\Delphi5\DCompLib\ralib\lib;C:\Develop\Delphi5\DComp
Lib\lock;C:\Develop\Delphi5\DCompLib\cipher\source;C:\Develop\Delphi5\DCompL
ib\jcl\source;C:\Develop\Delphi5\DCompLib\sinea;C:\Develop\Delphi5\DCompLib\
outlook;C:\Develop\Delphi5\DCompLib\ics\Delphi\Vc32;C:\Develop\Delphi5\DComp
Lib\VirtualTreeView;C:\Develop\Delphi5\DCompLib\GExperts\Comps;C:\Develop\De
lphi5\DCompLib\synaser\source;C:\Develop\Delphi5\DCompLib\AsyncFree;C:\Devel
op\Delphi5\DCompLib\xml\source;C:\Develop\Delphi5\DCompLib\Dec\source;C:\Dev
elop\Delphi5\DCompLib\Ics;C:\Develop\Delphi5\DCompLib\Theme Manager"
>>
DCC32.cfg
rem # SearchPath
echo
-I"C:\temp;c:\Develop\Delphi5\source\vcl-patch;c:\Develop\Delphi5\Lib;c:\Dev
elop\Delphi5\Bin;c:\Develop\Delphi5\Imports;c:\Develop\Delphi5\DCompLib\rx\u
nits;C:\Develop\Delphi5\DCompLib\ibo4;c:\Delphi5\Projects\Bpl;C:\Develop\Del
phi5\DCompLib;C:\Develop\Delphi5\DCompLib\ralib\lib;C:\Develop\Delphi5\DComp
Lib\lock;C:\Develop\Delphi5\DCompLib\cipher\source;C:\Develop\Delphi5\DCompL
ib\jcl\source;C:\Develop\Delphi5\DCompLib\sinea;C:\Develop\Delphi5\DCompLib\
outlook;C:\Develop\Delphi5\DCompLib\ics\Delphi\Vc32;C:\Develop\Delphi5\DComp
Lib\VirtualTreeView;C:\Develop\Delphi5\DCompLib\GExperts\Comps;C:\Develop\De
lphi5\DCompLib\synaser\source;C:\Develop\Delphi5\DCompLib\AsyncFree;C:\Devel
op\Delphi5\DCompLib\xml\source;C:\Develop\Delphi5\DCompLib\Dec\source;C:\Dev
elop\Delphi5\DCompLib\Ics;C:\Develop\Delphi5\DCompLib\Theme Manager"
>>
DCC32.cfg
rem # Min/MaxStackSize
echo -M16384,1048576 >> DCC32.cfg

"c:\Develop\Delphi5\Bin\DCC32.exe" Program1.dpr %1 %2 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto GotError
"c:\Develop\Delphi5\Bin\DCC32.exe" Program2.dpr %1 %2 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto GotError
"c:\Develop\Delphi5\Bin\DCC32.exe" Program3.dpr %1 %2 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto GotError

rem A sem klidne dalsi projekty

goto Finish

:GotError
echo Error!
pause

:Finish
del DCC32.cfg
if exist DCC32.cf~ ren DCC32.cf~ DCC32.cfg
if exist Program1.cf~ ren Program1.cf~ Program1.cfg
Echo ******* Done.

:End
------------------------------------------------
^Konec prikladu



Odpovedá: mr.guest_delphi@centrum.cz

6. 6. 2004 10:21

> >
> > Dobry den lidstvo,
> > takova otazecka. Lze jakkoliv zkompilovat projekt na jinam
> > PC? Zkousel jsem dc32.exe ale furt hlasi missing "system.pas"
>
> Ahoj,
>
> Tady mas priklad davkoveho souboru pro hromadny build,
> treba ti to pomuze. Pozor na zalomeni v mailu.

> >>> Pro prehlednost jsem priklad smazal (mr.guest)
>


Moc diky, vypada to pekne. Ale chyba teda bude asi jinde. Hlasi mi todve
chyby:
1) Kdyz system.pas chybi nahlasi ze chybi nebo ekvivaletni binarni soubor
(dcu)

2) Kdyz system.pas dam kam patri (tam kde se hleda) nahlasi tohle :

Copyright (c) 1983,2002 Borland Software Corporation
System.pas(10) Fatal: Cannot use reserved unit name 'System'
Error!

A konec  (((

Koukal jsem se co je teda na desate radce unity system.pas :
(10 radek) = "unit System;"

 Tak asi proto to hlasi nejakou tu chybu  



Odpovedá: Petr Vones

6. 6. 2004 10:52

From: <mr.guest_delphi@centrum.cz>
> Moc diky, vypada to pekne. Ale chyba teda bude asi jinde. Hlasi mi todve
> chyby:

A je tam to Delphi korektne nainstalovane ? Jinak lze pro tyto ucely pouzivat
makefile.

Petr Vones


Odpovedá: mr.guest_delphi@centrum.cz

6. 6. 2004 15:01


> A je tam to Delphi korektne nainstalovane ? Jinak lze pro tyto ucely
pouzivat
> makefile.
>

No zkousel jsem to tady, kde mam Delphi korektne nainstalovane. Takze tady i
tam to hlasi jedno a to same